package com.zhiyu.service;

import com.zhiyu.common.BaseService;
import com.zhiyu.mapper.AddressMapper;
import com.zhiyu.pojo.Address;
import org.springframework.stereotype.Service;

@Service
public class AddressService extends BaseService<AddressMapper, Address> {
    public int updateStatus(Integer addressId){
        return mapper.updateStatus(addressId);
    }
    public int updateDefaultStatus(Integer userId){
        return mapper.updateDefaultStatus(userId);
    }
    public Address selectDefault(Integer userId){
        return mapper.selectDefault(userId);
    }
}